-
Notifications
You must be signed in to change notification settings - Fork 15
Add request for fd iteration without /proc #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
behrmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Starting at line 644 is the section of finished items, so it needs to move above that line.
| ### A way to iterate process file descriptors without /proc | ||
|
|
||
| [x] A way to iterate process file descriptors without needing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ### A way to iterate process file descriptors without /proc | |
| [x] A way to iterate process file descriptors without needing | |
| ### A way to iterate over process file descriptors without /proc | |
| A way to iterate over process file descriptors without needing |
|
Wouldn't it be much nicer if we could call This is already possible by calling fork()+CLONE_NEWUSER+CLONE_NEWMOUNT and then calling So, maybe instead of providing duplicate APIs that /proc already has, we can instead ensure that access to at least (I am no huge fan of file-system based APIs like /proc, but I mean... it is there... we have it, so we can just make use of it) |
|
That would indeed do the trick, and in my case I already have a user and mountns, so let me close this. |
|
Nooooo, I need someone to push this forward! :'( |
Can't you merely |
Yes, I can, but then I cannot switch back to my original user-namespace. Even if I retain a namespace-fd to the original user-ns, a So yes, I can get access to proc by dropping namespaces, but it would lock you out from joining the previous user-namespace. By doing this in a fork, you can pass back the FD but retain your namespaces in the parent process. |
No description provided.